package com.example.spring.family.init;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @program: knowledge-pooling
 * @ClassName ApplicationRunnerInit
 * @description:
 * @author: tomato
 * @create: 2024-07-07 20:05
 *
 * @Version 1.0
 **/
@Order(2) //通过order注解指定执行顺序
@Component
public class ApplicationRunnerInit implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("ApplicationRunner 启动后执行方法...");
    }
}
